package com.example.hostsys.dao;

import com.example.hostsys.entity.House;
import com.example.hostsys.entity.Meeting;
import com.example.hostsys.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MeetDao extends JpaRepository<Meeting,Integer> {
    List<Meeting> findAllByStudentOrderByUpdateTimeDesc(Student student);
    List<Meeting> findAllByHouse(House house);
}
